# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=blackarch-config-spectrwm
pkgver=8.ee5d156
pkgrel=2
pkgdesc='BlackArch menu, theme and config for spectrwm window manager.'
arch=('any')
groups=('blackarch-config')
url='https://github.com/BlackArch/blackarch-config-spectrwm'
license=('custom')
depends=('spectrwm' 'feh' 'blackarch-wallpaper' 'terminus-font' 'rxvt-unicode')
makedepends=('git')
source=('git+https://github.com/BlackArch/blackarch-config-spectrwm.git')
sha512sums=('SKIP')
install="$pkgname.install"

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/blackarch/config/spectrwm"
  install -Dm 644 -t "$pkgdir/usr/share/blackarch/config/spectrwm/" \
    spectrwm.conf
}

